
#ifndef _Wrist_Pedometer_Lib_H_
#define _Wrist_Pedometer_Lib_H_


#include <stdint.h>
#include <stdbool.h>

typedef struct 
{
	uint8_t enable;
	uint8_t flag;
	uint8_t detected;
	uint32_t valid_cnt;
	uint32_t invalid_cnt;
}angle_detect_type_t;

extern angle_detect_type_t 	angle_detect;

void InitAlgorithmParameters(void);

void StepAlgortihm(signed short X,signed short Y,signed short Z);

uint32_t getActivityCounter(void);
uint32_t getStepCounter(void);

void pedo_turn_wrist_control(uint8_t onoff);

uint16_t getWristPedoAlgorithmVersion(void);

uint8_t step_algo_get_status(void);
uint8_t step_algo_get_hand_change(void);
uint8_t step_if_band_put_static(void);
#endif 
